API Documentation
JpgEncoder.h
1 // JpgEncoder.h
3 //
5 
6 namespace nkImages
7 {
11  class JpgEncoder final
12  {
13  public :
14 
15  // Compression
24  static nkMemory::Buffer encode (const ImageView& image) ;
25 
26  // Decompression
34  static bool canDecode (const nkMemory::BufferView<unsigned char>& data) ;
52  static Image decode (const nkMemory::BufferView<unsigned char>& data, const AlignmentDescriptor& alignmentDescriptor = AlignmentDescriptor()) ;
53  } ;
54 }
nkImages::JpgEncoder::decode
static Image decode(const nkMemory::BufferView< unsigned char > &data, const AlignmentDescriptor &alignmentDescriptor=AlignmentDescriptor())
nkMemory::BufferView< unsigned char >
nkImages::ImageView
Holds all information required for an image, with no ownership over the data.
Definition: ImageView.h:14
nkImages::JpgEncoder::canDecode
static bool canDecode(const nkMemory::BufferView< unsigned char > &data)
nkImages::JpgEncoder::encode
static nkMemory::Buffer encode(const ImageView &image)
nkImages::JpgEncoder
Offers capabilities to encode and decode JPEG format.
Definition: JpgEncoder.h:12
nkMemory::Buffer
A buffer holding binary data.
Definition: Buffer.h:32
nkImages::AlignmentDescriptor
Holds information about alignment constraints.
Definition: AlignmentDescriptor.h:12
nkImages
Encompasses all API of component NilkinsImages.
Definition: BmpEncoder.h:7
nkImages::Image
Holds all information required for an image, with ownership over the data.
Definition: Image.h:14